Class: Hokusai::Ast::Prop
- Inherits:
-
Object
- Object
- Hokusai::Ast::Prop
- Defined in:
- ui/src/hokusai/ast.rb
Instance Attribute Summary collapse
-
#raw ⇒ Object
readonly
Returns the value of attribute raw.
Instance Method Summary collapse
- #computed? ⇒ Boolean
-
#initialize(raw) ⇒ Prop
constructor
A new instance of Prop.
- #name ⇒ Object
- #value ⇒ Object
Constructor Details
#initialize(raw) ⇒ Prop
Returns a new instance of Prop.
99 100 101 |
# File 'ui/src/hokusai/ast.rb', line 99 def initialize(raw) @raw = raw end |
Instance Attribute Details
#raw ⇒ Object (readonly)
Returns the value of attribute raw.
97 98 99 |
# File 'ui/src/hokusai/ast.rb', line 97 def raw @raw end |
Instance Method Details
#computed? ⇒ Boolean
103 104 105 |
# File 'ui/src/hokusai/ast.rb', line 103 def computed? raw[:computed] end |
#name ⇒ Object
107 108 109 |
# File 'ui/src/hokusai/ast.rb', line 107 def name @name ||= raw[:name].freeze end |