Class: Icss::DataAsset
- Inherits:
-
Object
- Object
- Icss::DataAsset
- Includes:
- Receiver, Receiver::ActsAsHash
- Defined in:
- lib/icss/data_asset.rb
Instance Attribute Summary collapse
-
#type ⇒ Object
overriding ruby’s deprecated but still present type attr on objects.
Instance Method Summary collapse
Instance Attribute Details
#type ⇒ Object
overriding ruby’s deprecated but still present type attr on objects
9 10 11 |
# File 'lib/icss/data_asset.rb', line 9 def type @type end |
Instance Method Details
#named?(nm) ⇒ Boolean
13 14 15 |
# File 'lib/icss/data_asset.rb', line 13 def named? nm name == nm end |
#to_hash ⇒ Object
17 18 19 |
# File 'lib/icss/data_asset.rb', line 17 def to_hash() { :name => name, :location => location, :type => type, :doc => doc } end |
#to_json ⇒ Object
20 |
# File 'lib/icss/data_asset.rb', line 20 def to_json() to_hash.to_json ; end |