Class: Dhall::RubyObjectRaw
- Inherits:
 - 
      Expression
      
        
- Object
 - Expression
 - Dhall::RubyObjectRaw
 
 
- Defined in:
 - lib/dhall/ast.rb
 
Instance Method Summary collapse
- 
  
    
      #initialize(object)  ⇒ RubyObjectRaw 
    
    
  
  
  
    constructor
  
  
  
  
  
  
  
    
A new instance of RubyObjectRaw.
 - #method_missing(m, *args, &block) ⇒ Object
 - #respond_to_missing?(m) ⇒ Boolean
 - #unwrap ⇒ Object
 
Methods inherited from Expression
#&, #*, #+, #annotate, #as_dhall, #cache_key, #call, #concat, decode, #deep_merge, #deep_merge_type, #dhall_eq, #digest, #fetch, #fusion, #merge, #normalize, #resolve, #shift, #slice, #substitute, #to_binary, #to_cbor, #to_proc, #to_s, #|
Constructor Details
#initialize(object) ⇒ RubyObjectRaw
Returns a new instance of RubyObjectRaw.
      226 227 228  | 
    
      # File 'lib/dhall/ast.rb', line 226 def initialize(object) @object = object end  | 
  
Dynamic Method Handling
This class handles dynamic methods through the method_missing method
#method_missing(m, *args, &block) ⇒ Object
      238 239 240 241 242 243 244  | 
    
      # File 'lib/dhall/ast.rb', line 238 def method_missing(m, *args, &block) if @object.respond_to?(m) @object.public_send(m, *args, &block) else super end end  | 
  
Instance Method Details
#respond_to_missing?(m) ⇒ Boolean
      234 235 236  | 
    
      # File 'lib/dhall/ast.rb', line 234 def respond_to_missing?(m) super || @object.respond_to?(m) end  | 
  
#unwrap ⇒ Object
      230 231 232  | 
    
      # File 'lib/dhall/ast.rb', line 230 def unwrap @object end  |