Class: Extralite::Transform::DSLContext
- Inherits:
-
Object
- Object
- Extralite::Transform::DSLContext
- Defined in:
- lib/extralite.rb
Instance Attribute Summary collapse
-
#hash ⇒ Object
readonly
Returns the value of attribute hash.
Instance Method Summary collapse
- #auto ⇒ Object
- #bool ⇒ Object
- #float ⇒ Object
- #identity ⇒ Object
-
#initialize(hash = {}) ⇒ DSLContext
constructor
A new instance of DSLContext.
- #integer ⇒ Object
- #json ⇒ Object
- #text ⇒ Object
Constructor Details
#initialize(hash = {}) ⇒ DSLContext
Returns a new instance of DSLContext.
372 373 374 |
# File 'lib/extralite.rb', line 372 def initialize(hash = {}) @hash = hash end |
Instance Attribute Details
#hash ⇒ Object (readonly)
Returns the value of attribute hash.
370 371 372 |
# File 'lib/extralite.rb', line 370 def hash @hash end |
Instance Method Details
#auto ⇒ Object
376 |
# File 'lib/extralite.rb', line 376 def auto = mutate(type: nil) |
#bool ⇒ Object
380 |
# File 'lib/extralite.rb', line 380 def bool = mutate(type: :bool) |
#float ⇒ Object
378 |
# File 'lib/extralite.rb', line 378 def float = mutate(type: :float) |
#identity ⇒ Object
382 |
# File 'lib/extralite.rb', line 382 def identity = mutate(identity: true) |
#integer ⇒ Object
377 |
# File 'lib/extralite.rb', line 377 def integer = mutate(type: :integer) |
#json ⇒ Object
381 |
# File 'lib/extralite.rb', line 381 def json = mutate(type: :json) |
#text ⇒ Object
379 |
# File 'lib/extralite.rb', line 379 def text = mutate(type: :text) |